//
//  CZTBViewController.swift
//  weiboOne
//
//  Created by 唐阿丽 on 16/4/5.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

class CZTBViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

//      实例化首页
        let home=CZHomeViewController()
//    添加图片
        home.tabBarItem.image=UIImage(named: "tabbar_home")
        
        home.tabBarItem.selectedImage=UIImage(named: "tabbar_home_highlighted")
    
        home.tabBarItem.title="首页"
        
        
//        设置导航栏
        let nav = UINavigationController(rootViewController:home)

//       添加
        addChildViewController(nav)
        
        
//        addChildViewController(CZFindViewController(), image: "tabbar_discover" , title: "发现")
        
        
        
        
        
    }

    
    
    
    func addChildViewController(childController: UIViewController,image:NSString,title:NSString) {
        
        
        
        
        
        
    }
    

   
    
    
}
